/* 接口管理 */

const HTTP = require('./httpUtils.js');

// const API_BASE_URL = 'https://www.fastmock.site/mock/1010b262a743f0b06c565c7a31ee9739/root';

const API_BASE_URL = 'https://iwate.cn';



/* 接口地址： */
const URL = {
	login:API_BASE_URL+'/index.php/login',//登录
	modelselect:API_BASE_URL+'/index.php/modelselect ',//获取货柜
	takematerial:API_BASE_URL+'/index.php/takematerial ',//取料信息
	repairmaterial:API_BASE_URL+'/index.php/repairmaterial',//补料列表
	freighttrack:API_BASE_URL+'/index.php/freighttrack',//补料列表
	cabinetinventory:API_BASE_URL+'/index.php/cabinetinventory',
	adminrecoveryinfo:API_BASE_URL+'/index.php/adminrecoveryinfo',//回收记录查询
	delcheck:API_BASE_URL+'/index.php/delcheck',//回收查询反馈确认
	recovery:API_BASE_URL+'/index.php/recovery',//回收
	supplement:API_BASE_URL+'/index.php/supplement',//补料
	xtake:API_BASE_URL+'/index.php/xtake',//取料
	recoverycargo:API_BASE_URL+'/index.php/recoverycargo',//回收货道
	takerecovery:API_BASE_URL+'/index.php/takerecovery',// 物料回收
	takereturnlog:API_BASE_URL+'/index.php/Takereturnlog',// 操作记录
	operationlist:API_BASE_URL+'/index.php/operationlist',// 操作记录
	managementlist:API_BASE_URL+'/index.php/managementlist',// 操作记录
	take:API_BASE_URL+'/index.php/take',// 操作记录
	relationcabinet:API_BASE_URL+'/index.php/relationcabinet',// 操作记录
	
	//storeCleansOrdersLeaveStore: API_BASE_URL + '/sr-store/v1/03/cleans/orders/leave_store',// 清运离店
	
}
/* 通过module.exports方式提供给外部调用 */
module.exports = {
	URL,
	API_BASE_URL,
	
	login: (params) => HTTP.post(URL.login, params),
	modelselect: (params) => HTTP.post(URL.modelselect, params),
	takematerial: (params) => HTTP.post(URL.takematerial, params),
	repairmaterial: (params) => HTTP.post(URL.repairmaterial, params),
	freighttrack: (params) => HTTP.post(URL.freighttrack, params),
	cabinetinventory: (params) => HTTP.post(URL.cabinetinventory, params),
	adminrecoveryinfo: (params) => HTTP.post(URL.adminrecoveryinfo, params),
	delcheck: (params) => HTTP.post(URL.delcheck, params),
	recovery: (params) => HTTP.post(URL.recovery, params),
	supplement: (params) => HTTP.post(URL.supplement, params),
	xtake: (params) => HTTP.post(URL.xtake, params),
	recoverycargo: (params) => HTTP.post(URL.recoverycargo, params),
	takerecovery: (params) => HTTP.post(URL.takerecovery, params),
	takereturnlog: (params) => HTTP.post(URL.takereturnlog, params),
	operationlist: (params) => HTTP.post(URL.operationlist, params),
	managementlist: (params) => HTTP.post(URL.managementlist, params),
	take: (params) => HTTP.post(URL.take, params),
	relationcabinet: (params) => HTTP.post(URL.relationcabinet, params),
	
}


/* 
使用方法 ：

1.在要使用的js文件导入
const API = require('../../../../JhHttpUtils/APICongfig.js'); 


2. 调用
API.getPageArrDict(params).then(res => {

}).catch(error => {

});

 */
